package com.haiberg.framework.dao.impl;

import com.haiberg.framework.dao.IDmsFilesDAO;
import com.haiberg.framework.om.DmsFiles;

import org.apache.log4j.Logger;
import org.springframework.orm.hibernate4.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;
@Repository("dmsFilesDao")
public class DmsFilesDAO extends HibernateDaoSupport implements IDmsFilesDAO {
	private static final Logger log = Logger.getLogger(DmsFilesDAO.class);
	
	public void save(DmsFiles transientInstance) {
		log.debug("saving TDept instance");
		try {
			getHibernateTemplate().save(transientInstance);
			log.debug("save successful");
		} catch (RuntimeException re) {
			log.error("save failed", re);
			throw re;
		}
	}
}
